package com.demostic.demostic_test.app;

import android.app.Application;
import android.content.Context;

import com.accloud.cloudservice.AC;
import com.demostic.demostic_test.logUtils.LogcatHelper;
import com.demostic.demostic_test.utils.BitmapUtils;
import com.demostic.demostic_test.utils.Constants;
import com.glidebitmappool.GlideBitmapPool;

public class MyApplication extends Application {
    private final String TAG = MyApplication.class.getSimpleName();

    @Override // android.app.Application
    public void onCreate() {
        super.onCreate();
        AC.init(this, Constants.MajorDomain, Constants.MajorDomainId, 0);
        Constants.setRegional_Service_Name(1);
        GlideBitmapPool.initialize(10485760);
        BitmapUtils.putBitmapMemory();
    }

    @Override // android.app.Application
    public void onTerminate() {
        super.onTerminate();
        LogcatHelper.getInstance(this).stop();
    }

    @Override // android.app.Application, android.content.ComponentCallbacks2
    public void onTrimMemory(int level) {
        super.onTrimMemory(level);
        GlideBitmapPool.trimMemory(level);
        GlideBitmapPool.clearMemory();
    }

    /* access modifiers changed from: protected */
    @Override // android.support.multidex.MultiDexApplication, android.content.ContextWrapper
    public void attachBaseContext(Context base) {
        super.attachBaseContext(base);
    }
}
